<template>
  <InvestPro v-if="appStore.isProBet" ref="investDom" />
  <Invest ref="investDom" v-else />
</template>

<script setup lang="ts">
import { ref } from 'vue'
import Invest from '@/components/game/tpl-lhc/tpl-lhc.vue'
import InvestPro from '@/components/game/tpl-lhc/tpl-lhc-pro.vue'
import { useAppStore } from '@/stores/app'

const investDom = ref()

const appStore = useAppStore()

const open = () => {
  investDom.value?.open?.()
}

defineExpose({ open })
</script>
